package com.jhz.speedy.logic.entity.response;

import java.io.Serializable;

/**
 * 响应基类
 * Created by JunHeZ on 2017/6/28.
 */
public class BaseResponse<T> implements Serializable{
    private int status; // 状态，1是成功
    private String msg; // 错误消息
    private T result;  // 数据结果
    private T data;

    /**
     * 状态成功
     */
    public static final int STATUS_OK = 1;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
